home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr11
/
deepdran.zip
/
DEEPDRAN.C
next >
Wrap
C/C++ Source or Header
|
1993-06-01
|
693b
|
38 lines
/* this routine does a deep drain on the battery */
#include <CONIO.H>
#include <STDIO.H>
main()
{
unsigned char block;
unsigned long count;
block = ' ';
printf ("\n\nDeepDrain by Steven Polsky\n\n");
printf ("Deep Draining your laptop battery makes it recharge more completely.\n");
printf ("Run this program until ██ stops flashing, or press any key to abort.\n\n");
while (! kbhit()) {
printf ("Deep Draining Battery %c%c\r", block, block);
if (block == ' ') {
block = '█';
}
else {
block = ' ';
}
/* pause */
for (count = 1; count < 100000; count++) {
}
}
printf ("\n\nDeepDrain aborted!\n\n");
return(1);
}